home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilmisc
/
queue.lzh
/
queue_3.1
/
queue.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-28
|
898b
|
40 lines
/*
queue.h --- queue library definitions.
Copyright (c) 1995 SHW Wabnitz
Written by Bernhard Fastenrath (fasten@shw.com)
This file may be distributed under the terms
of the GNU General Public License.
*/
#ifndef QUEUE_H
#define QUEUE_H
typedef APTR QHandle;
typedef struct {
struct MinNode qm_MinNode;
USHORT qm_Status;
USHORT qm_Refs;
ULONG qm_Replies;
QHandle qm_Owner;
void *qm_Data;
} QMessage;
/* modes for QOpen (name, mode) */
#define QMODE_LISTEN 0x1
#define QMODE_SEND 0x2
QHandle QOpen (STRPTR name, ULONG mode, ULONG sigbit);
ULONG QClose (QHandle qh);
void QAddMsg (QHandle qh, QMessage *msg);
void QRemMsg (QHandle qh, QMessage *msg);
QMessage *QGetMsg (QHandle qh);
ULONG QReplyMsg (QHandle qh);
ULONG QFlush (QHandle qh);
QMessage *QAllocMsg (ULONG size);
void QFreeMsg (QMessage *msg, ULONG size);
#endif /* QUEUE_H */